// ==========================================================================
// GFast自动生成service操作代码。
// 生成日期：2024-06-11 17:40:12
// 生成路径: internal/app/app/service/app_user.go
// 生成人：yxfmlbb
// desc:用户表
// company:云南奇讯科技有限公司
// ==========================================================================

package service

import (
	"context"

	"github.com/tiger1103/gfast/v3/internal/app/app/model"
)

type IAppUser interface {
	List(ctx context.Context, req *model.AppUserSearchReq) (res *model.AppUserSearchRes, err error)
	GetById(ctx context.Context, Id uint64) (res *model.AppUserInfoRes, err error)
	Add(ctx context.Context, req *model.AppUserAddReq) (err error)
	Edit(ctx context.Context, req *model.AppUserEditReq) (err error)
	Delete(ctx context.Context, Id []uint64) (err error)
}

var localAppUser IAppUser

func AppUser() IAppUser {
	if localAppUser == nil {
		panic("implement not found for interface IAppUser, forgot register?")
	}
	return localAppUser
}

func RegisterAppUser(i IAppUser) {
	localAppUser = i
}
